MindControl's basic functions are scriptable, so you can use AppleScript to automate the addition or deletion of commands. This powerful capability allows you to condense multiple actions into an executable script (that MindControl can launch for you). In addition, because AppleScripts can involve multiple applications, you can command MindControl with values gathered from web browsers, word processors, databases and other scriptable applications.
AppleScript communicates with MindControl through messages called Apple events. MindControl responds to these events by performing actions, such as adding a command. To view the events available for scripting MindControl, open Script Editor (it's bundled with the Macintosh OS), select Open Dictionary from the File menu and navigate to the MindControl application. Make your selection and click Open.
 
MindControl offers the following scriptable events:
NewCommand
This adds a new command based on file path, command and description. The syntax is:
NewCommand value Command value Description value.
NewCommand: precedes a value for the path to a file, document or drive.
Command: precedes a value for the command name.
Description: precedes a value for the command description.
NewURL
This adds a new URL based on URL path, command and description. The syntax is:
NewURL value Command value Description value.
NewURL: precedes a value for the URL path.
Command: precedes a value for the command name.
Description: precedes a value for the command description.
DeleteCommandURL
This deletes a user-defined command from the list.
DeleteCommandURL: precedes a value for the command or URL to delete.
Sample scripts
The following sample scripts assign values to variables and then use the variables in statements that instruct MindControl to perform specific actions.
To add a command:
tell application "MindControl"
set thefile to "Macintosh HD:Desktop Folder:Demo folder" as alias
Scripts that are more complex may call on other applications to return values for MindControl statements. A new command name, for example, could come from a heading in a web browser window. Or a script might gather URL paths from a spreadsheet.
Where to download scripts
To download working examples of MindControl scripts, visit MindControl Extras at http://www.mindvision.com/mindcontrol/extras. Here you can find scripts that make MindControl even more useful. For example, one script will create a MindControl command for the web page currently displayed by your web browser. Another script will read the sender's address from an e-mail message and create a MindControl command for that address.
Share useful tips and scripts
If you come up with a novel use for MindControl, we invite you to share it with others. This could be a tip for using MindControl, or it could be an executable script. Just go to the MindControl Extras site and submit your information. We will review all submissions and post the approved ones on the web site where everyone can access them.